//
// Created by hzq on 2022/10/30.
//

#include <gtest/gtest.h>
#include "ELF_reader.h"

char *g_elf_name = nullptr;
TEST(ELF_TEST1, read_e_identTest) {
#ifdef __linux__
    using ELF::ELF_reader;
    ELF_reader s(g_elf_name);
    int ret = s.show_section_headers();
    EXPECT_EQ(ret,0);
#endif
    EXPECT_EQ(true,true);
}

int main(int argc, char **argv) {
    g_elf_name = argv[0];
    ::testing::InitGoogleTest(&argc, argv);
    return RUN_ALL_TESTS();
}